package com.itheima.reggie.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单
 */
@Data
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //订单号
    @Excel(name = "订单号",orderNum = "0")
    private String number;

    //订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
    @Excel(name = "订单状态",orderNum = "1")
    private Integer status;


    //下单用户id
    private Long userId;

    //地址id
    private Long addressBookId;


    //下单时间
    @Excel(name = "下单时间",orderNum = "5")
    private LocalDateTime orderTime;

    //结账时间
    private LocalDateTime checkoutTime;


    //支付方式 1微信，2支付宝
    private Integer payMethod;


    //实收金额
    @Excel(name = "实收金额",orderNum = "6")
    private BigDecimal amount;

    //备注
    private String remark;

    //用户名
    private String userName;

    //手机号
    @Excel(name = "手机号",orderNum = "3")
    private String phone;

    //地址
    @Excel(name = "地址",orderNum = "4")
    private String address;

    //收货人
    @Excel(name = "用户",orderNum = "2")
    private String consignee;
}